/**
 * 个人信息模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/request/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const my = {
    // 新闻列表
    // articleList () {
    //     return axios.get(`${base.sq}/topics`);
    // },
    // 新闻详情,演示
    // articleDetail (id, params) {
    //     return axios.get(`${base.sq}/topic/${id}`, {
    //         params: params
    //     });
    // },
    // post提交
    // login (params) {
    //     return axios.post(`${base.sq}/accesstoken`, qs.stringify(params));
    // },
    getInfo(token){
        return axios.get(`${base.sq}UserInfo?token=`+token);

    },
    getAbout(){
        return axios.get(`${base.sq}CustomerService`);

    },
    getIntegral(token){
        return axios.get(`${base.sq}IntegralUser?token=`+token);

    },
    IntegralRank(token){
        return axios.get(`${base.sq}IntegralRank?token=`+token);
    },
    UserInvitation(token){
        return axios.get(`${base.sq}UserInvitation?token=`+token);
    },
    IntegralDesc(token){
        return axios.get(`${base.sq}IntegralDesc?token=`+token);
    },
    getgearlist(token,type){
        return axios.get(`${base.sq}getgearlist?token=`+token+`&type=`+type);
    },
    IntegralExchangeVip(token,id){
        return axios.get(`${base.sq}IntegralExchangeVip?token=`+token+`&id=`+id);
    },
    IntegralExchangeThing(params){
        return axios.post(`${base.sq}IntegralExchangeThing`,qs.stringify(params));
    },
    IntegralLogList(params){
        return axios.get(`${base.sq}IntegralLogList`,{
            params: params
        });
    }






    // 其他接口…………
}

export default my;